package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/Operation")
public class WmsOperationRouter {
    @Autowired
    SysMenuService menuService;
    //出库复核页面
    @RequestMapping(value = "/Operation/{menu}")
    public  String  toOperation(@PathVariable("menu") String menu, Model model){
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "outOperation/WmsOperation/Operation";
    }
    /*跳转到异常处理页面*/
    @RequestMapping(value = "/getEdit")
    public String getEdit(String xbh, Model model) {
        model.addAttribute("xbh",xbh);
        System.out.println("xbh====="+xbh);
        return "outOperation/WmsOperation/exceptionHandling";
    }
}
